# 架构和交叉编译器
# export ARCH = arm64
# export CROSS_COMPILE = aarch64-none-linux-gun- 
export ARCH = arm64
export CROSS_COMPILE = aarch64-none-linux-gnu-
# 目标
obj-m += miscdevice.o
# 路径
KDIR := /jnheCode/tspkfb/kernel
PWD ?= $(shell pwd)

# make 和 make clean
all:
	make -C $(KDIR) M=$(PWD) modules
clean:
	make -C $(KDIR) M=$(PWD) clean